package com.example.crm01.entity.system;

import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.crm01.entity.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;


@Data
@TableName("t_service_package")
public class ServicePackage extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 套餐名称
     */
    private String name;

    /**
     * 区划id
     */
    private Long regionId;

    /**
     * 区划名称
     */
    private String regionName;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 套餐数量
     */
    private Integer servicePackageNum;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
